//
//  UIColor+FGExtension.h
//  FGSDK
//
//  Created by LWF on 2018/5/4.
//  Copyright © 2018年 杭州东九网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kColorAlpha(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
#define kColor(r,g,b) kColorAlpha(r,g,b,1)
#define kColorRandom kColor(arc4random()%256, arc4random()%256, arc4random()%256)
#define kColorGray(rgb) kColor(rgb, rgb, rgb)

@interface UIColor (FGExtension)
    
/**
 Creates a Color from a Hex representation string
 @param hexString   Hex string that looks like @"#FF0000" or @"FF0000"
 @return    Color
 */
+ (instancetype)FGColorFromHexString:(NSString *)hexString;
+ (instancetype)FGColorFromHexString:(NSString *)hexString alpha:(CGFloat)alpha;

@end
